<?php


define('YII_ENV', $params['env']);

$config = [
    'id' => 'app-console',
    'controllerNamespace' => 'app\commands',
    'components' => [
    ],
    'controllerMap' => [
        'fixture' => [ // Fixture generation command line.
            'class' => 'yii\faker\FixtureController',
        ],
    ],
];

if ($params['env'] == 'dev') {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
    ];
}

return $config;
